﻿using Lis.DTO;
using Lis.Model;
using System;
using System.Collections.Generic;

namespace Lis.IBLL
{
    public interface IAppointmentService
    {
        /// <summary>
        /// 图书预约
        /// </summary>
        /// <param name="borrowBook"></param>
        /// <returns></returns>
        ServiceResult<String> HoldBook(BorrowBookDto borrowBook);

        /// <summary>
        /// (取消)图书预约
        /// </summary>
        /// <param name="borrowBook"></param>
        /// <returns></returns>
        ServiceResult<String> CancelHoldBook(BorrowBookDto borrowBook);

        /// <summary>
        /// 获取当前预约
        /// </summary>
        /// <param name="UserName">读者卡号</param>
        /// <returns></returns>
        ServiceResult<IEnumerable<object>> GetEntitiesByUserName(string UserName);
    }
}
